import api from '@/service/api';

type Params = {
  id: number;
}

/*
* 删除文章
* */
export default (params: Params): Promise<any> => {
  const { id } = params;
  return api.post(`/admin/delete-article/${id}`);
}
